package cn.fboost.mtos.mapper;

import cn.fboost.mtos.dto.request.PageRequest;
import cn.fboost.mtos.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserMapper {
    User find(int id);
    User findByWechatOpenID(String id);
    int create(User user);
    int update(User user);
    List<User> list(PageRequest.PageOffset pagination);
    int count();
}
